public class PercentageDiscountPricing implements ISalePricing{

	private double percentage;
	
	public PercentageDiscountPricing(double percentage){
		this.percentage = percentage;
	}
	
	public double getTotal(Sale sale){
		return (sale.getPreDiscountTotal()-(sale.getPreDiscountTotal()*percentage/100));
	}
}
